
public class Suggestion implements Comparable<Suggestion> {

	private String _word;
	private int _levenshteinMetric;

	public Suggestion(String word, int levenshteinMetric) {
		_word = word;
		_levenshteinMetric = levenshteinMetric;
	}
	
	@Override
	public int compareTo(Suggestion arg0) {
		return _levenshteinMetric - arg0._levenshteinMetric;
	}

	public String toString() {
		return _word;
	}
}
